FROM openjdk:8-jre-alpine
LABEL maintainer="3061552332@qq.com"
COPY target/*.jar /app.jar
RUN apk add -u tzdata; \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
echo 'Asia/Shanghai' > /etc/timezone;  \
touch /app.jar;
ENV JAVA_OPTS=""
ENV PARAMS=""
EXPOSE 8080
ENTRYPOINT ["sh","-c","java $JAVA_OPTS -jar /app.jar $PARAMS"]































